<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 流调任务</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-sm-12">

            <div class="ibox">
                <div class="ibox-title">
                    <h5>所有流调上报</h5>
                </div>
                <div class="ibox-content">
                    <div class="row m-b-sm m-t-sm">
                        <div class="col-md-1">
                            <button type="button" href="/epidMissionList" class="btn btn-white btn-sm"><i class="fa fa-refresh"></i> 刷新</button>
                        </div>
                        <div class="col-md-11">
                            <div class="input-group">
                                <input type="text" placeholder="请输入流调上报名称" class="input-sm form-control"> <span class="input-group-btn">
                                        <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                        </div>
                    </div>

                    <div class="project-list">

                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <td>日期</td>
                                <td>患者姓名</td>
                                <td>传染病类型</td>
                                <td>医院</td>
                                <td>地址</td>
                                <td>状态</td>
                                <td class="project-actions">
                                    <a href="#" class="btn btn-white btn-sm" onclick="window.location.href='/reportManage';">
                                        <i class="fa fa-pencil"></i> 新建上传 </a>
                                </td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="e:${epidMissionRecordBeans}">
                                <td th:text="${e.getRequestTime()}"></td>
                                <td th:text="${e.getPatientName()}"></td>
                                <td th:text="${e.getDiseaseName()}"></td>
                                <td th:text="${e.getRequestHospital()}"></td>
                                <td th:text="${e.getAssignPlace()}"></td>
                                <td class="project-status">
                                    <span th:if="${e.getMissionState()} ne 3" class="label label-primary">已上报</span>
                                    <!--<span th:case="1" class="label label-primary">流调中</span>-->
                                    <!--<span th:case="2" class="label label-primary">流调完成</span>-->
                                    <span th:if="${e.getMissionState()} eq 3" class="label label-primary">已取消</span>
                                    <!--<span th:case="4" class="label label-primary">已完成</span>-->
                                    <!--<span th:case="5" class="label label-primary">二次确认</span>-->
                                    <!--<span th:case="6" class="label label-primary">确认完成</span>-->
                                </td>
                                <td class="project-actions">
                                    <a th:href="@{'/reportDetails?missionId='+${e.getMissionId()}}" class="btn btn-white btn-sm"><i class="fa fa-folder"></i> 上报详情 </a>
                                    <a th:href="@{'/reportCancel?missionId='+${e.getMissionId()}}" class="btn btn-white btn-sm" ><i class="fa fa-pencil"></i> 上报取消 </a>
                                </td>
                                <!--<td>-->
                                <!--<a onclick="redirToCodeRuleInfo()" class="btn btn-primary btn-sm ">规则详情</a>-->
                                <!--</td>-->
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>


<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>


<script>
    $(document).ready(function(){

        $('#loading-example-btn').click(function () {
            btn = $(this);
            simpleLoad(btn, true)

            // Ajax example
//                $.ajax().always(function () {
//                    simpleLoad($(this), false)
//                });

            simpleLoad(btn, false)
        });
    });

    function simpleLoad(btn, state) {
        if (state) {
            btn.children().addClass('fa-spin');
            btn.contents().last().replaceWith(" Loading");
        } else {
            setTimeout(function () {
                btn.children().removeClass('fa-spin');
                btn.contents().last().replaceWith(" Refresh");
            }, 2000);
        }
    }
</script>



</body>
</html>
